/**
 * Created by   :Wangshuzhong
 * Created time :2019/09/19
 */
require(["vue","ELEMENT"], function (Vue, Element) {
  Vue.use(Element)
  var Config = $("body").data("config"); // 配置文件内容
  //设置导航栏
  window.app = new Vue({
      el: '#app',
      data: {
          activeName: '', // 显示的导航
          activeSecName: '' // 显示的二级导航
      },
      created:function() {
          //获取标签库列表   
          Config.Request('post', Config.apiUrl.getTagsList).then(function(res) {
              if(res.code == 200) {
                  var resList = res.data;
                  console.log(resList)
              } else {
                  self.$message.error(res.message)
              }
          })
          Config.Request('post', Config.apiUrl.getTagsNews,{'tagName': '123'}).then(function(res) {
              if(res.code == 200) {
                  console.log(res)
                  var tagObj = res.data;
                  console.log(tagObj)
              } else {
                  self.$message.error(res.message)
              }
          })
      },
      mounted:function() {

      },
      methods: {

      }
  });
})
